<fieldset>
    <legend>{:lang('条件搜索')}</legend>
    <form class="layui-form layui-form-pane form-search" action="{:sysuri()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">飞手昵称</label>
            <label class="layui-input-inline">
                <input name="nickname" value="{$get.nickname|default=''}" placeholder="请输入飞手昵称" class="layui-input">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">飞手姓名</label>
            <label class="layui-input-inline">
                <input name="realname" value="{$get.realname|default=''}" placeholder="请输入飞手姓名" class="layui-input">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">货物种类</label>
            <label class="layui-input-inline">
                <input name="transport_type" value="{$get.transport_type|default=''}" placeholder="请输入货物种类" class="layui-input">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">货运场景</label>
            <label class="layui-input-inline">
                <input name="transport_scene" value="{$get.transport_scene|default=''}" placeholder="请输入货运场景" class="layui-input">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">任务时间</label>
            <label class="layui-input-inline">
                <input data-date-range name="exec_at" value="{$get.exec_at|default=''}" placeholder="请选择订单任务时间" class="layui-input">
            </label>
        </div>

<!--        <div class="layui-form-item layui-inline">-->
<!--            <label class="layui-form-label">任务名称</label>-->
<!--            <label class="layui-input-inline">-->
<!--                <input name="name" value="{$get.name|default=''}" placeholder="请输入任务名称" class="layui-input">-->
<!--            </label>-->
<!--        </div>-->

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="status">
                    <option value=''>-- 全部 --</option>
                    {foreach $status_dict as $k=>$v}
                    {if isset($get.status) and $get.status eq $k.""}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}{/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">创建时间</label>
            <label class="layui-input-inline">
                <input data-date-range name="create_at" value="{$get.create_at|default=''}" placeholder="请选择创建时间" class="layui-input">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <button type="submit" class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> {:lang('搜 索')}</button>
<!--            <button type="button" data-form-export="{:url('index')}?type={$type|default=''}" class="layui-btn layui-btn-primary">-->
<!--                <i class="layui-icon layui-icon-export"></i> {:lang('导 出')}-->
<!--            </button>-->
        </div>
    </form>
</fieldset>

<script>
    // require(['excel'], function (excel) {
    //     excel.bind(function (data) {
    //         // 设置表格内容
    //         data.forEach(function (item, index) {
    //             data[index] = [item.id, item.nickname, item.company, item.create_at];
    //         });
    //         // 设置表头内容
    //         data.unshift(['ID', '商户昵称', '公司名称', '创建时间']);
    //         // 应用表格样式
    //         return this.withStyle(data, {A: 100});
    //     }, '商户列表' + layui.util.toDateString(Date.now(), '_yyyyMMdd_HHmmss'));
    // });
</script>
